package com.fafu.rbac.service;

import com.fafu.rbac.domain.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Set;

public interface UserService extends IService<User>{

    /**
     * 获取指定用户拥有的角色+权限
     * @param id
     * @return：ROLE_admin  sys:user:add
     */
    Set<String> getRolePermission(Long id);

}
